package com.liveinstars.api.im;

import com.liveinstars.api.im.vo.FansVO;
import com.liveinstars.api.im.vo.UserFansInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.onepiece.shipelves.common.Result;

@FeignClient("im")
public interface FansApiService {


	@GetMapping("/getFansList")
	String getFansList(@RequestParam(value = "userId", defaultValue = "") Long userId, @RequestParam(value = "fansId", defaultValue = "") Long fansId);

	@GetMapping("/getFans")
	Result<FansVO> getFansByUserIdAndFansId(@RequestParam(value = "userId", defaultValue = "") Long userId, @RequestParam(value = "fansId", defaultValue = "") Long fansId);

	@PostMapping("/addFans")
	Result<FansVO> addFans(@RequestBody FansVO fansVO);

	@GetMapping("/fansCount")
	Result<UserFansInfoVO> getFansCount(@RequestParam(value = "userId", defaultValue = "") Long userId);

}
